package org.example;

import java.util.ArrayList;

public class util {
    public static void main(String[] args) {
        Student stu1=new Student("张三",18,"男");
        Student stu2=new Student("李思雨",17,"女");
        Student stu3=new Student("王毅",19,"男");
        ArrayList<Student> stu=new ArrayList<>();
        stu.add(stu1);
        stu.add(stu2);
        stu.add(stu3);
        int Mage=ArryUtil.getMax(stu);
        System.out.println("最大年龄为："+Mage);


    }
}
